package name.huzhenbo.java.patterns.command;

class RoverNorth extends AbstractRoverState {
    public void move(Rover rover) {
        rover.setY(rover.getY() + 1);
    }

    public void turnLeft(Rover rover) {
        rover.setWestState();
    }

    public void turnRight(Rover rover) {
        rover.setEastState();
    }
}
